home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form SetupFrm
- BorderStyle = 4 'Fixed ToolWindow
- Caption = "Math Tutor Setup"
- ClientHeight = 1575
- ClientLeft = 45
- ClientTop = 285
- ClientWidth = 3735
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1575
- ScaleWidth = 3735
- ShowInTaskbar = 0 'False
- StartUpPosition = 2 'CenterScreen
- Begin VB.CommandButton OK
- Caption = "OK"
- Height = 255
- Left = 120
- TabIndex = 9
- ToolTipText = "OK"
- Top = 1200
- Width = 3495
- End
- Begin VB.OptionButton OptionD
- Caption = "Hard"
- Height = 255
- Index = 2
- Left = 2400
- TabIndex = 8
- ToolTipText = "Hard"
- Top = 840
- Width = 1215
- End
- Begin VB.OptionButton OptionD
- Caption = "Medium"
- Height = 255
- Index = 1
- Left = 1200
- TabIndex = 7
- ToolTipText = "Medium"
- Top = 840
- Value = -1 'True
- Width = 1095
- End
- Begin VB.OptionButton OptionD
- Caption = "Easy"
- Height = 255
- Index = 0
- Left = 120
- TabIndex = 6
- ToolTipText = "Easy"
- Top = 840
- Width = 975
- End
- Begin VB.CheckBox OptionT
- Caption = "Roots"
- Height = 255
- Index = 5
- Left = 2400
- TabIndex = 5
- ToolTipText = "Roots"
- Top = 480
- Width = 1215
- End
- Begin VB.CheckBox OptionT
- Caption = "Exponents"
- Height = 255
- Index = 4
- Left = 1200
- TabIndex = 4
- ToolTipText = "Exponents"
- Top = 480
- Width = 1095
- End
- Begin VB.CheckBox OptionT
- Caption = "Division"
- Height = 255
- Index = 3
- Left = 120
- TabIndex = 3
- ToolTipText = "Division"
- Top = 480
- Width = 1095
- End
- Begin VB.CheckBox OptionT
- Caption = "Multiplication"
- Height = 255
- Index = 2
- Left = 2400
- TabIndex = 2
- ToolTipText = "Multiplication"
- Top = 120
- Width = 1215
- End
- Begin VB.CheckBox OptionT
- Caption = "Subtraction"
- Height = 255
- Index = 1
- Left = 1200
- TabIndex = 1
- ToolTipText = "Subtraction"
- Top = 120
- Width = 1215
- End
- Begin VB.CheckBox OptionT
- Caption = "Addition"
- Height = 255
- Index = 0
- Left = 120
- TabIndex = 0
- ToolTipText = "Addition"
- Top = 120
- Value = 1 'Checked
- Width = 1095
- End
- Attribute VB_Name = "SetupFrm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- 'Name: Math Tutor
- 'Author: InfraRed
- 'Contact Info: ICQ #: 17948286
- ' E-Mail: InfraRed@flashmail.com
- '----------------Code Starts Here------------------
- Private Sub Form_Unload(Cancel As Integer) 'Unload the program
- Unload SetupFrm
- Unload TutorFrm
- Unload Me
- End Sub
- Private Sub OK_Click() 'Move on to the tutor
- TutorFrm.Show
- TutorFrm.Startup
- SetupFrm.Hide
- End Sub
- Private Sub OptionT_Click(Index As Integer) 'The whole purpose of this is to make sure atleast one of the checkboxes is always selected
- Dim OneChecked As Boolean
- For i = 0 To 5
- If OptionT(i).Value = 1 Then
- OneChecked = True
- End If
- Next i
- If OneChecked = False Then
- OptionT(Index).Value = 1
- End If
- End Sub
-